#include <iostream>
using namespace std;
class ABC{
private:
	int a;
	int b;
	int c;
public:
	ABC(int a=0,int b=0,int c=0):a(a),b(b),c(c){}
	void setA(int a){a=a;}
	void setB(int b){b=b;}
	void setC(int c){c=c;}
	int getA(){return a;}
	int getB(){return b;}
	int getC(){return c;}
	void show(){
		cout << "a=" << a << endl;
		cout << "b=" << b << endl;
		cout << "c=" << c << endl;
	}
};
class AAB:public ABC{
public:
	AAB(int aa=0,int bb=0):ABC(aa,aa,bb){}
};
int main()
{
	AAB temp1(3,4);
	temp1.setC(5);
	temp1.show();
	return 0;
}
